import { request } from "@/request";
/**家庭拥有者移除某个成员*/
export const delFamilyUser = (params: {
  /**
   * 家庭id
   */
  familyId: string;
  /**
   * 用户id
   */
  userId: string;
}) =>
  request({
    method: "DELETE",
    url: "/familyMember/delBy",
    data: params,
  });
/**家庭成员内查询用户 */
export const getFamilyUserList = (params: {
  /**
   * 家庭id
   */
  familyId: string;
  /**
   * 用户昵称
   */
  nickname?: null | string;
}) =>
  request<API.FamilyUserInfo>({
    method: "POST",
    url: "/familyMember/get",
    data: params || {},
  });
